package com.project.thread.demo;

public class MyThreadTwo extends Thread {

    private String name;

    public MyThreadTwo(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 30; i++) {
            System.out.println(name + "运行,i= " + i);
        }
    }
}
